/*
 * @Title:
 * @Description:
 * @Author: 靖博君
 * @Date: 2024-02-22 16:36:09
 * @FilePath: /vue3-admin-naive-starter/src/api/login.ts
 */
import request from '@/utils/request'

export type LoginForm = {
  /**
   * 登录账号
   */
  account: string
  /**
   * 密码
   */
  pwd: string
  /**
   * 验证码
   */
  code?: string
}

export const useLoginApi = {
  login(data: LoginForm) {
    return request({ url: '/api/web/login', method: 'POST', data })
  }
}
